package api.utils;

import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import java.util.concurrent.TimeUnit;

public class FunctionUtilsTestNg2 {

    @BeforeClass
    public  void setUpClass() throws Exception {
        System.out.println("setUpClass ");
    }

    @BeforeMethod
    public void setUp() {
    }

    @AfterMethod
    public void tearDown() {
    }

    @Test(groups = {"group1"})
    public void testFunction1() {
    }

    @Test(groups = {"group2"})
    public void testFunction2() {
        try {
            TimeUnit.SECONDS.sleep(3);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
